<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wx_app_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wx_app_id" data-rule="required" data-source="wx/app/index" class="form-control selectpage" name="row[wx_app_id]" type="text" value="{$row.wx_app_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wx_secret')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wx_secret" class="form-control" name="row[wx_secret]" type="text" value="{$row.wx_secret|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nick_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nick_name" class="form-control" name="row[nick_name]" type="text" value="{$row.nick_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_name" class="form-control" name="row[user_name]" type="text" value="{$row.user_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_type_info')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-service_type_info" class="form-control btn-group  selectpicker" name="row[service_type_info]">
                {foreach name="serviceTypeInfoList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.service_type_info"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Principal_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-principal_name" class="form-control" name="row[principal_name]" type="text" value="{$row.principal_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Alias')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-alias" class="form-control" name="row[alias]" type="text" value="{$row.alias|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Signature')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-signature" class="form-control" name="row[signature]" type="text" value="{$row.signature|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Qrcode_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-qrcode_url" class="form-control" name="row[qrcode_url]" type="text" value="{$row.qrcode_url|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Authorizer_access_token')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-authorizer_access_token" class="form-control" name="row[authorizer_access_token]" type="text" value="{$row.authorizer_access_token|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Authorizer_refresh_token')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-authorizer_refresh_token" class="form-control" name="row[authorizer_refresh_token]" type="text" value="{$row.authorizer_refresh_token|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Authorizer_expires')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-authorizer_expires" class="form-control" name="row[authorizer_expires]" type="number" value="{$row.authorizer_expires|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wx_domain')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wx_domain" class="form-control" name="row[wx_domain]" type="text" value="{$row.wx_domain|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
